package com.ys.enume.bi;

/**
 * 流水分析统计汇总表
 */
public class BiFlowAnalysisEnum {

    public enum DataType {
        INCOME("收入", 0),
        OUTCOME("支出", 1),
        PROFIT("利润", 2),
        ;

        public String name;
        public Integer value;

        private DataType(String name, Integer value) {
            this.name = name;
            this.value = value;
        }

        public static String getName(Integer value) {
            for (DataType e : DataType.values()) {
                if (e.value.equals(value)) {
                    return e.name;
                }
            }
            return "";
        }
    }

}
